package 结构器模式.装饰者模式;

/**
 * @Description 具体的构建角色
 * @Author shallow
 * @Date 2023/3/5 16:37
 */

public class FriedNoodles extends FastFood{

    public FriedNoodles(){
        super(12,"炒面");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}

